#include <fstream>
#include <iostream>

void out(std::string data, std::string filename)
{
    std::ofstream outfile;
    filename.append(".txt");
    outfile.open(filename, std::ios::out | std::ios::ate);
    outfile << data;
    outfile.close();

}
void in(std::string filename)
{
    std::ifstream infile;
    std::string str;
    filename.append(".txt");
    infile.open(filename, std::ios::in);
    getline(infile, str);
    std::cout << (str) << "\n";
    infile.close();
}
